package com.qiyu.mall.user.interfaces.dto;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class AccountDTO implements Serializable {

    private static final long serialVersionUID = -3606362015849339053L;

    private long id;

    private Integer accountId;

    private String nickname;

    private Integer accountType;

    private String trueName;

    private long sex;

    private long grade;

    private double amount;

    private String tel;

    private Date freezeStartDate;

    private Date freezeEndDate;

    private Date lastLoginTime;

    private String lastLoginIp;

    private Date registerDate;

    private long addressId;

    private String openId;

    private long score;

    private Integer rank;

    /**
     * wx昵称
     */
    private String wxNickName;

    /**
     * wx头像
     */
    private String wxAvatarUrl;

    @NotNull(message = "页码不能为空")
    @Min(value = 0, message = "页码不能为负数")
    private Integer page;

    @NotNull(message = "页大小不能为空")
    @Min(value = 0, message = "页大小不能为负数")
    private Integer pageSize;
}
